package systems;

public class MailSystem {
	private static String id = "";
	
	private static int count = 0;
	
	private static int currentPage = 1;
	
	private static int limit = 100;
	
	private static int status = 1; //0: running, 1: finished
	
	public static void increaseCount() {
		count = count + 1;
	}
	
	public static void decreaseCount() {
		count = count - 1;
	}
	
	public static void increaseCurrentPage() {
		currentPage = currentPage + 1;
	}
	
	public static void decreaseCurrentPage() {
		currentPage = currentPage - 1;
	}
	
	public static void reset() {
		count = 0;
		currentPage = 1;
		limit = 100;
		status = 1;
	}

	public static String getId() {
		return id;
	}

	public static void setId(String id) {
		MailSystem.id = id;
	}

	public static int getCount() {
		return count;
	}

	public static void setCount(int count) {
		MailSystem.count = count;
	}

	public static int getCurrentPage() {
		return currentPage;
	}

	public static void setCurrentPage(int currentPage) {
		MailSystem.currentPage = currentPage;
	}

	public static int getLimit() {
		return limit;
	}

	public static void setLimit(int limit) {
		MailSystem.limit = limit;
	}

	public static int getStatus() {
		return status;
	}

	public static void setStatus(int status) {
		MailSystem.status = status;
	}
}
